package com.chuangsi.project.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chuangsi.project.admin.domain.Defeat;
import com.chuangsi.project.admin.dto.admin.defeat.ReqDefeatPageDto;
import com.chuangsi.project.admin.dto.admin.defeat.ReqFollowUpRecordsAddDto;
import com.chuangsi.project.admin.dto.admin.defeat.ResDefeatPageDto;
import com.chuangsi.project.admin.dto.admin.defeat.app.ReqDefeadAddDto;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 战败记录 服务类
 * </p>
 *
 * @author 
 * @since 2024-05-10
 */
public interface DefeatService extends IService<Defeat> {

    /**
     * 添加战败
     * @param req
     */
    void addDefeat(ReqDefeadAddDto req);

    /**
     * 分页查询
     * @param dto
     * @return
     */
    List<ResDefeatPageDto> pageQuery(ReqDefeatPageDto dto);

    /**
     * 导出
     * @param dto
     * @param response
     */
    void export(ReqDefeatPageDto dto, HttpServletResponse response);

    /**
     * 添加回访记录
     * @param req
     */
    void addFollowUpRecords(ReqFollowUpRecordsAddDto req);

    /**
     * APP分页查询
     * @param reqDefeatPageDto
     * @return
     */
    List<ResDefeatPageDto> appPageQuery(ReqDefeatPageDto reqDefeatPageDto);

    /**
     * 删除回访记录
     * @param defeatId
     */
    void delDefeat(Integer defeatId);
}
